﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TestClient
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }
       

        protected void btn(object sender, EventArgs e)
        {
            ServiceReference2.Service1Client sc = new ServiceReference2.Service1Client();
            string str1 = TextBox1.Text;            
            Stream str = sc.getApp_Check_Promocode(str1);
            StreamReader reader = new StreamReader(str);
            string text = reader.ReadToEnd();
            Label1.Text = text;          
        }
    }
}